﻿using Volo.Abp.Reflection;

namespace YunxSoft.Abp.LanguageManagement.Permissions;

public class LanguageManagementPermissions
{
    public const string GroupName = "LanguageManagement";

    public static class Languages
    {
        public const string Default = GroupName + ".Languages";
        public const string Create = Default + ".Create";
        public const string Update = Default + ".Update";
        public const string Delete = Default + ".Delete";
        public const string ChangeDefault = Default + ".ChangeDefault";
    }

    public static class LanguageTexts
    {
        public const string Default = GroupName + ".LanguageTexts";
        public const string Update = Default + ".Update";
    }


    public static string[] GetAll()
    {
        return ReflectionHelper.GetPublicConstantsRecursively(typeof(LanguageManagementPermissions));
    }
}
